home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1 / Ian and Stuart's One (Australia).iso / Australasian Legends / Commercial / Rainbow Hill / MacDOS™ 2.0.0 / User's Guide / 12 Getting Info < prev    next >
Text File  |  1994-09-20  |  2KB  |  50 lines

  1. 12  Getting Info
  2.        In  the  previous  sections  you  have  already  encountered
  3.        several  commands which give you information on your  system
  4.        and  MacDOS. DATE, PROMPT, SHOW, TIME, and VOL all fall into
  5.        this  category.  This section completes  the  list  of  such
  6.        commands.
  7.  
  8. MacDOS Version
  9.        You  can find out what version of MacDOS you are running  by
  10.        executing  the command VER. This is part of the  information
  11.        that  you get when the Finder displays the Info box  of  the
  12.        MacDOS application file.
  13.  
  14.        Additionally, VER also displays your MacDOS licence number.
  15.  
  16. On-line Help
  17.        When  you  type  the  command HELP with a  command  name  as
  18.        argument,  MacDOS displays a brief summary of  the  command,
  19.        its  parameters,  and  its switches.  You  obtain  the  same
  20.        result if you execute any command with the switch /? .
  21.  
  22.        HELP  without  parameters displays one line  of  description
  23.        for  each  command, while HELP followed by a  question  mark
  24.        lists the command names.
  25.  
  26. Keeping Track of MacDOS
  27.        You  can  direct  MacDOS to keep a log of  the  commands  it
  28.        executes. You only need to type:  log logFileSpec  .  MacDOS
  29.        then  stores each command that you execute into a  new  line
  30.        of  the  log  file.  This continues until  you  execute  the
  31.        command LOG without parameters.
  32.  
  33.        Such  a  file  is  very  useful to trace  the  execution  of
  34.        complex  batch  programs, especially  during  the  debugging
  35.        phase.
  36.  
  37.        The  logging  mechanism can also be used to  generate  batch
  38.        files:
  39.          •   LOG a series of commands;
  40.          •    edit the log file to remove unnecessary lines and  to
  41.           update some commands;
  42.          •    change the creator from 'ttxt' to 'mDOS'. (you  don't
  43.           need to do this if the system variable CREATOR is set  to
  44.           'mDOS').
  45.        When  used  in this way, the LOG command operates  like  the
  46.        macro collection mechanism common to many applications.
  47.  
  48.        If  you add the switch /O , LOG stores into the log file the
  49.        output of the commands as well as the commands themselves.
  50.